#include <stdio.h>
int main()
{
    int n;
    char *seasons[] = {"quarter 1st",
                       "quarter 2st",
                       "quarter 3st",
                       "quarter 4st"};

    printf("\nEnter a month (use 1 for Jan., 2 for Feb.,etc.): ");
    scanf("%d", &n);
    n = n % 12;
    if (!n)
        n = 12;
    n = (n - 1) / 3; /*create the correct subscript*/
    printf("The month entered is %s.\n", seasons[n]);

    return 0;
}